package cn.topcodes.tcsf.wechat.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import lombok.Data;

import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "t_wechat_user_branch")
public class WechatUserBranch extends IdEntity {

    public static final String FIELD_USER_ID = "userId";

    public static final String FIELD_SUBSCRIBE = "subscribe";

    public static final String FIELD_SUBSCRIBE_TIME = "subscribeTime";

    public static final String FIELD_OPEN_ID = "openId";

    public static final String FIELD_TYPE = "type";

    public static final String FIELD_WECHAT_MP_ID = "wechatMpId";

    //	关注-已关注
    public static final String SUBSCRIBE_TRUE = "Subscribe";
    //	关注-未关注
    public static final String SUBSCRIBE_FALSE = "Unsubscribe";

    // 登录平台--微信公众号
    public static final String TYPE_MP = "MP";
    // 时刻小宝
    public static final String TYPE_BABY = "BABY";


    /**
     * userId
     */
    private Long userId;

    /**
     * 关注状态
     */
    private String subscribe;

    /**
     * 关注时间
     */
    private Date subscribeTime;

    /**
     * openId
     */
    private String openId;

    /**
     * 登录平台
     */
    private String type;

    /**
     * 公众号id
     */
    private Long wechatMpId;
}
